from django.conf.urls.defaults import *

urlpatterns = patterns('miles8.blog',
    (r'^$', 'views.index'),    
    (r'^cate/(?P<cate_id>\d+)/$', 'views.get_art_by_cate_id'),  
    (r'^(?P<art_id>\d+)/$', 'views.get_art_by_art_id'), 
    (r'^archive/(?P<year>\d{4})/(?P<month>\d{2})/$', 'views.get_art_by_archive_date'), 
    
    (r'^(?P<art_id>\d+)/comment/add/$', 'views.add_comment'),
    (r'^ajax/validator/$', 'views.ajax_validator'),
)